package com.ufinity.estimation.persistence.domain;

import java.util.HashSet;
import java.util.Set;

/**
 * 
 * Description of the class
 * 
 * @author lxt
 * @version 1.0
 * @since 2011-4-7
 */
public class Resource implements java.io.Serializable {

    /**
     * serialVersionUID long
     */
    private static final long serialVersionUID = 1975477107030899600L;

    private Long              id;

    private Resource          parentResource;

    private String            name;

    private String            url;

    private Set<User>         users            = new HashSet<User>(0);

    private Set<Resource>     resources        = new HashSet<Resource>(0);

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Resource getParentResource() {
        return parentResource;
    }

    public void setParentResource(Resource parentResource) {
        this.parentResource = parentResource;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return this.url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Set<User> getUsers() {
        return this.users;
    }

    public void setUsers(Set<User> users) {
        this.users = users;
    }

    public Set<Resource> getResources() {
        return this.resources;
    }

    public void setResources(Set<Resource> resources) {
        this.resources = resources;
    }
    
}
